/*
 * @Date: 2022-12-25 14:59:55
 * @LastEditors: 于波
 * @LastEditTime: 2022-12-25 16:39:41
 * @Description:
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import VMdEditor from "@kangc/v-md-editor";
import "@kangc/v-md-editor/lib/style/base-editor.css";
import vuepressTheme from "@kangc/v-md-editor/lib/theme/vuepress.js";
import "@kangc/v-md-editor/lib/theme/style/vuepress.css";
import createAlignPlugin from "@kangc/v-md-editor/lib/plugins/align";
import createCopyCodePlugin from "@kangc/v-md-editor/lib/plugins/copy-code/index";
import "@kangc/v-md-editor/lib/plugins/copy-code/copy-code.css";

// Prism
import Prism from "prismjs";
// highlight code
import "prismjs/components/prism-json";

import Header from "@/components/Header.vue";
import "element-plus/es/components/message/style/css";
import "@/assets/font/iconfont.css";
VMdEditor.use(vuepressTheme, {
	Prism,
});
VMdEditor.use(createAlignPlugin());
VMdEditor.use(createCopyCodePlugin());
const app = createApp(App);
app.component("ks-header", Header);
app.use(VMdEditor).use(store).use(router).mount("#app");
